Switch device having a plurality of processing cores

ABSTRACT

A switching device comprises a plurality of switch cores, each switch core having a plurality of ports associated with the switch core. Each switch core is configured to perform ingress processing of a data frame using a local source port indicator corresponding to an ingress port selected from a first plurality of ports associated with the switch core. Ingress processing of a data frame includes applying a global target port indicator corresponding to an egress port selected from a second plurality of ports including ports associated with one or more other switch cores among the plurality of switch cores.

CROSS-REFERENCE TO RELATED APPLICATION

This application that claims the benefit of U.S. Provisional Patent Application No. 61/244,292, entitled “Multi-Core Ethernet Switch,” which was filed on Sep. 21, 2009, the entire disclosure of which is hereby incorporated by reference herein.

FIELD OF THE DISCLOSURE

The present disclosure relates generally to communication networks and, more particularly, to switching devices.

BACKGROUND

The background description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent it is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.

Some networking applications require switching among a large number of ports.

SUMMARY

In one embodiment, a switching device comprises a plurality of switch cores disposed on a single integrated circuit. Each switch core includes a pipeline configured to process a received data frame and to direct the received data frame to another switch core on the single integrated circuit for further processing, or direct the received data frame to an egress port.

In another embodiment, a method includes receiving a data frame at a switch core disposed on a single integrated circuit, and processing the received data frame in a pipeline of the switch core. The method also includes determining whether to direct the received data frame to another switch core disposed on the single integrated circuit for further processing, or to direct the received data frame to an egress port corresponding to the switch core. Additionally, the method includes selectively directing the received data frame to the other switch core or to the egress port corresponding to the switch core based on the determination.

In yet another embodiment, a switching device comprises a plurality of switch cores, each switch core having a plurality of ports associated with the switch core. Each switch core is configured to perform ingress processing of a data frame using a local source port indicator corresponding to an ingress port selected from a first plurality of ports associated with the switch core. Additionally, ingress processing of a data frame includes applying a global target port indicator corresponding to an egress port selected from a second plurality of ports including ports associated with one or more other switch cores among the plurality of switch cores.

In still another embodiment, a method comprises receiving a data frame via a port associated with a first switch core of a plurality of switch cores of a switching device, and applying a local source port indicator corresponding to the port associated with the first switch core, wherein the local source port indicator is unique with respect to the first switch core and non-unique with respect to other switch cores in the plurality of switch cores. Also, the method comprises performing ingress processing on the received data frame using the local source port indicator, and determining a target port corresponding to the received data frame. Additionally, the method comprises applying a global target port indicator corresponding to the target port corresponding to the received data frame, wherein the global target port indicator is unique with respect to all of the switch cores in the plurality of switch cores.

In yet another embodiment, a switching device comprises a first switch core having an ingress processor and an egress processor, wherein the ingress processor of the first switch core utilizes local source port indicators and global target port indicators for ingress processing, wherein the local source port indicators are associated with the first switch core, and wherein the global target port indicators are associated with the first switch core and the second switch core. The switching device also comprises a second switch core having an ingress processor and an egress processor, wherein the egress processor of the second switch core utilizes local target port indicators and global source port indicators for egress processing, wherein the local target port indicators are associated with the second switch core, and wherein the global source port indicators are associated with the first switch core and the second switch core. The switching device additionally comprises a distributor coupled to the first switch core and the second switch core, the distributor to transfer data frame information from the ingress processor of the first switch core to the egress processor of the second switch core, and a translator to translate local source port indicators to global source port indicators, and to translate global target port indicators to local target port indicators.

In still another embodiment, a method, includes receiving a data frame via a port associated with a first switch core of a plurality of switch cores of a switching device, and performing ingress processing with the first switch core on the received data frame using the local source port indicator and a global target port indicator corresponding to a port associated with a second switch core of the plurality of switch cores. Additionally, the method includes forwarding data frame information to the second switch core, and translating the local source port indicator to a global source port indicator. The method further includes translating the global target port indicator to a local target port indicator, and performing egress processing with the second switch core on the received data frame using the global source port indicator and the local target port indicator.

In yet another embodiment, a switching device comprises a plurality of processing cores including a first processing core and a second processing core. The first processing core is configured to process an ingressing data frame using a local source port indicator to designate an ingress port and a global target port indicator to designate an egress port. The second processing core is configured to further process the data frame using a local target port indicator to designate the egress port, and a global source port indicator to designate the ingress port.

In still another embodiment, a method includes receiving a data frame, and processing the data frame at a first processing core using a local source port indicator to designate an ingress port and a global target port indicator to designate an egress port. Additionally, the method includes processing the data frame at a second processing core using a local target port indicator to designate the egress port, and a global source port indicator to designate the ingress port.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an example integrated circuit (IC) that is utilized in a switch device, according to an embodiment;

FIG. 2 is a block diagram of an example implementation of the switch core/port interface that is utilized for the IC of FIG. 1, according to an embodiment;

FIG. 3 is a block diagram of an example switch engine that is utilized for the IC of FIG. 1 and for the switch core of FIG. 2, according to an embodiment;

FIG. 4 is a block diagram of an example distributor that is utilized as the distributor of FIG. 1, according to an embodiment;

FIG. 5 is a flow diagram of an example method that is implemented by the IC of FIG. 1, the switch core of FIG. 2, and/or the switch core of FIG. 3, according to an embodiment; and

FIG. 6 is a block diagram of an example switch system that utilizes the IC of FIG. 1, according to an embodiment.

DETAILED DESCRIPTION

Example switching methods and apparatus are described herein in the context of Ethernet networks. It is noted, in light of the disclosure and teachings herein, that similar methods and apparatus are suitable to be utilized in other communication networks as well.

FIG. 1 is a block diagram of an example integrated circuit (IC) 100 that may be utilized in a switch device, such as an Ethernet switch. The IC 100 includes a plurality of switch cores 104 a-104 d disposed on the IC and coupled together via a distributor 108. Additionally, each switch core 104 is coupled with a corresponding port interface 112 a-112 d, and each port interface supports coupling to a plurality suitable ports, which in accordance with embodiments of the disclosure are optical and/or electrical ports. It is noted that, in light of the disclosure and teachings herein, in accordance with an embodiment, the IC 100 suitably enables switch devices capable of switching between a high number of ports and in a small form factor, in at least some embodiments. For example, in one embodiment, the IC 100 is capable of switching between at least 48 ten Gigabit per second (10 Gbps) ports. According to one embodiment, a switch device, having a one rack unit (1U) form factor, may include, for example, three IC's 100, and the switch device is capable of switching between 72 ports. It is noted that switch devices capable of switching between a high number of ports and in a small form factor are useful for applications such as data centers and server farms, for example.

In other embodiments, the IC 100 is capable of switching between less than or more than 48 ports and each port is capable of speeds other than 10 Gbps (i.e., higher or lower than 10 Gbps). Additionally, although FIG. 1 illustrates four switch cores 104, in other embodiments, less than four (i.e., two or three) or more than four switch cores 104, with the corresponding number of port interfaces 112, are included on the IC 100.

According to one embodiment, each switch core 104 is associated with a corresponding port interface 112, which handles ports local to the switch core 104. For example, the ports handled by port interface 112 a are considered local ports of the switch core 104 a. Similarly, the ports handled by port interface 112 b are considered local ports of the switch core 104 b. Generally when a switch core 104 receives a data frame via a local source port, the switch core 104 determines the target port to which the data frame should be transmitted, which may or may not be a local port respective of the receiving switch core 104. If the target port is not a local port of the receiving switch core, the switch core 104 performs some, but not all, processing operations on the received data frame and then transmits the data frame to the distributor 108. The distributor 108 subsequently directs the data frame to the appropriate other switch core 104 with respect to which the target port is a local port. Processing operations on the data frame are completed at the switch core 104 associated with the target port. For example, when a data frame is received by the switch core 104 a via a local port of the switch core 104 a, the switch core 104 a determines the target port. If the target port corresponds to the switch core 104 d, for example, the switch core 104 a transmits the data frame to the distributor 108, which then directs the data frame to the switch core 104 d. Next, the switch core 104 d forwards the data frame to the target port, which is a local port of the switch core 104 d. In the example, some processing operations on the data frame, typically ingress processing operations, are performed at the receiving switch core 104 a, while additional processing operations on the data frame, typically egress processing operations, are performed at the switch core 104 d.

In an embodiment, a switch core 104 forwards a data frame to the distributor 108 even if the target port is a local port of the switch core 104. In another embodiment, a switch core 104 does not forward a data frame to the distributor 108 if the target port is a local port of the switch core 104. Rather, the data frame is further processed by the switch core 104 without being provided to the distributor 108.

Data frames, when received via a port interface 112, may be stored in a memory of the IC 100 (not shown in FIG. 1) and remain in the same location while being processed by switch cores 104 and the distributor 108. For example, a pointer or other identifier of a data frame may be passed between a switch core 104 and the distributor 108, or between switch cores 104. Thus, although switch cores 104 were described above as sending or forwarding data frames to the distributor 108 or another switch core 104, in an embodiment, sending or forwarding a data frame between a switch core 104 and the distributor 108, or between switch cores 104 comprises sending a pointer or other identifier of a data frame stored in a memory and/or a sending a descriptor associated with the data frame or a pointer to the descriptor. In other embodiments, sending or forwarding a data frame between a switch core 104 and the distributor 108, or between switch cores 104, comprises sending the actual data frame.

The IC 100 includes a central processing unit (CPU) interface 116 to interface with a CPU 120. The interface 116 permits the CPU 120 to communicate with each of the switch cores 104. In one embodiment, the interface 116 comprises a CPU port (e.g., a gigabit media independent interface (GMII) or other suitable interface) and a serial management interface (SMI), or any suitable interface(s). The IC 100 can include other interfaces as well such as one or more peripheral component interconnect express (PCI-E) interfaces, one or more two-wire serial interface (TWSI) interfaces, and/or other suitable interfaces.

FIG. 2 is a block diagram of an example switch core 150 that may be utilized for each switch core 104/port interface 112 pair of FIG. 1. The switch core 150 includes a port interface 154 that may correspond to a port interface 112 of FIG. 1. The port interface 154 includes a media access control (MAC) block 158 and a serializer/deserializer (SERDES) block 162. The SERDES block 162 generates and receives a plurality of serial signals 166 corresponding to a plurality of local ports of the switch core 150. In one embodiment, the plurality of serial signals 166 includes Reduced 10 Gigabit Attachment Unit Interface (RXAUI) signals such as disclosed in U.S. patent application Ser. No. 12/621,268, filed Nov. 18, 2009, entitled “HARDWARE INTERFACE UTILIZING ALIGNMENT SYMBOLS FOR DEMULTIPLEXING,” which is hereby incorporated by reference herein. Additionally or alternatively, the plurality of serial signals 166 includes 10 Gigabit Attachment Unit Interface (XAUI) signals according to the IEEE 802.3ae Standard, and/or other suitable signals.

In one embodiment, the MAC block 158 includes a plurality of MAC processors, wherein each MAC processor corresponds to a port. For example, each MAC processor implements MAC functions in conjunction with the port to which the MAC processor corresponds, according to an embodiment. In an embodiment, each MAC processor implements MAC functions that conform to the IEEE 802.3 Standard. In other embodiments, other suitable MAC functions are implemented. In an embodiment, the SERDES block 162 includes a plurality of SERDES, wherein the plurality of SERDES is grouped according to ports, i.e., each group of SERDES corresponds to a port. For example, in one embodiment, each group of two SERDES corresponds to a port. In another embodiment, each group of four SERDES corresponds to a port. Other numbers of SERDES per group may be utilized as well. In one embodiment, the number of SERDES in a group that corresponds to a port is configurable. In another embodiment, the number of SERDES in a group that corresponds to a port is fixed and nonconfigurable.

The switch core 150 further includes a data memory 170, a buffer management unit 174, a write direct memory access (DMA) unit 178, and a read DMA unit 182. According to an embodiment, the buffer management unit 174 allocates buffers in the data memory 170 for storing data frames received via the SERDES block 162. For example, when a data frame is received via the SERDES block 162, the buffer management unit 174 allocates a buffer for the data frame, if warranted, and the write DMA writes information from the data frame into the data memory 170 at locations corresponding to the allocated buffer. The buffer management unit 174 provides the write DMA unit 178 with information regarding the location of the allocated buffer. When a data frame is to be transmitted via the SERDES block 162, the read DMA unit 182 reads data frame data from the allocated buffer and provides the data frame data to the MAC block 158. In an embodiment, the read DMA unit 182 indicates to the buffer management unit 174 that an allocated buffer is available to be deallocated because the data frame has been provided to the MAC block 158 for transmission via a port.

An ingress processor 186 processes data frames received via the port interface 154. The ingress processor 186 generally determines how the data frame should be forwarded. For example, the ingress processor 186 generally processes the data frame to determine the target port to which the data frame is to be egressed. The target port can be either a port that is local to the switch core 150 or a port that is non-local to the switch core 150, i.e., the target port can be a port of the same switch core or a port of another switch core. The target port is indicated by a port number or other suitable indicator. In an embodiment, the target port indicator determined by the ingress processor 186 is unique for multiple switch cores 104, 150 of the IC 100 (e.g., all switch cores 104, 150 of the IC 100), whereas a source port indicator is unique only for the switch core 150 to which the data frame is ingressed. In an embodiment, after determining the target port for a data frame, the ingress processor 186 sends the data frame to the distributor. The term “ingressing port” is sometimes used herein to refer to the source port via which a data frame is received. The term “egressing port” is sometimes used herein to refer to the target port via which a data frame is transmitted.

An egress processor 190 processes data frames received via the distributor. The egress processor 190 generally performs various egress processing operations and forwards data frames to the target port indicated by the target port indicator.

A local memory 192 stores databases or tables utilized by the ingress processor 186 and the egress processor 190, such as a forwarding database (FDB), a next hop table, policy control list (PCL) data, VLAN data, multicast group data, etc. In an embodiment, the memory 192 includes one or more ternary content addressable memories (TCAMs), for example, to store one or more of FDB data, next hop data, PCL data, VLAN data, multicast group data, etc.

Referring now to FIGS. 1 and 2, in an embodiment, all switch cores 104, 150 on the IC 100 are associated with the same device number, but each port of the IC 100 has a unique global port indicator (e.g., number). On the other hand, each port of the IC 100 has a local port indicator (e.g., number) that is unique with respect to the associated switch core 104, 150, but is not unique with respect to other ports associated with other switch cores 104, 150 disposed in IC 100. In an embodiment, the ingress processor 186 utilizes local source port indicators (i.e., local to the switch core 150) and global target port indicators when processing an ingressing data frame or descriptor. Additionally, the egress processor 190 utilizes local target port indicators (i.e., local to the switch core 150) and global source port indicators when processing an egressing data frame or descriptor.

In accordance with an embodiment, FDB data, next hop data, PCL data, VLAN data, multicast group data, etc., is more efficiently stored in the local memory 192 for use by the switch cores 104, 150 as compared to storing the same data for all of the switch cores 104, 150. For example, PCL data, VLAN data, multicast group data, etc., that is unique to local ports of a switch core 104, 150 can be stored in the local memory 192, whereas this data need not be stored in other memories of other switch cores 104, 150. Similarly, PCL data, VLAN data, multicast group data, etc., for other non-local ports can be omitted from the local memory 192. On the other hand, some data, such as FDB data, next hop data, etc., may need to be stored in each associated local memory 192 of all of the switch cores 104, 150, or otherwise provided to all the switch cores 104, 150. For example, in an embodiment, the IC 100 includes a shared memory 194 that is coupled to a plurality of switch cores 104, 150 in the IC 100. In this embodiment, some data, such as data utilized only by the switch core 150, is stored in the memory 170, whereas other data, such as data utilized by multiple switch cores, is stored in the shared memory 194.

FIG. 3 is a block diagram of an example switch engine 200 that is suitable for use in each switch core 104/port interface 112 pair of FIG. 1 and for the example switch core 150 of FIG. 2. The example switch engine 200 utilizes a pipeline architecture for processing data frames. For example, the switch engine 200 includes an ingress pipeline 204 and an egress pipeline 208, each coupled to one or more ports 212. Additionally, the ingress pipeline 204 and the egress pipeline 208 are coupled together. For example, the ingress pipeline 204 and the egress pipeline 208 seen in FIG. 3 are coupled together via the distributor 108. It is noted that other couplings for an ingress pipeline and an egress pipeline are contemplated, for example via a distributor (not seen) that is internal to the switch core.

In accordance with an embodiment, the one or more ports 212 are suitable for coupling to one or more networks such as a wide area network (WAN), a local area network (LAN), such as a wired LAN or a wireless LAN (WLAN), etc. As seen in FIG. 3, the ingress pipeline 208 and the egress pipeline 208 each include a plurality of processing units coupled in series. Generally, each processing unit of a pipeline optionally processes a data frame, a portion of the data frame (e.g., a header), or a data frame descriptor and then passes the data frame, portion, or descriptor to the next unit in the pipeline. A descriptor may include some information from the data frame, such as some or all of the header information of the packet. The descriptor may include other information as well such as an indicator of where the data frame is stored in the memory 170, which in an embodiment is internal to switch core 200; alternatively in other embodiments (not seen) the memory 170 is external to the switch core and is shared by two or more switch cores 200 that are each disposed on the same integrated circuit. For ease of explanation, the term “data frame” hereinafter may be used to refer to a data frame itself, a portion of the data frame, or to a descriptor associated with the data frame. Thus, when the present disclosure refers to processing, sending, or forwarding a data frame, it is contemplated that, when appropriate, merely a descriptor of the data frame is processed, sent, or forwarded additionally or alternatively. Similarly, when the present disclosure refers to processing, sending, or forwarding a descriptor, it is contemplated that, when appropriate, the data frame associated with the descriptor may be processed, sent, or forwarded additionally or alternatively.

Each processing unit may or may not process a particular data frame. For example, in some instances, a processing unit may simply forward a data frame onto the next unit in the pipeline. In an embodiment, the last processing unit of the ingress pipeline 204 passes the data frame to the distributor. In another embodiment, the last processing unit of the ingress pipeline 204 is configured to also pass the data frame to the first unit in the egress pipeline 208 when the target port corresponds to the egress pipeline 208 (i.e., is one of the ports 212).

In an embodiment, each or at least some of the processing units of the ingress pipeline 204 and the egress pipeline 208 includes, or otherwise is associated with, a corresponding memory. A data frame received by a unit may be stored in the memory associated with the unit.

The ingress pipeline 204 includes a port media access control (MAC) receiver unit 216 coupled to the one or more ports 212. The port MAC receiver unit 216 generally implements media access control functions and forwards the data frame to a write DMA unit 218. A buffer management unit, such as the buffer management unit 174 of FIG. 2, allocates buffers for use by the write DMA unit 218. The write DMA unit 218 creates a descriptor and sends the descriptor and a header of the data frame to a header decode unit 220. Additionally, the write DMA unit 218 stores the data frame in the memory 170.

The header decode unit 220 generally decodes the header of each data unit received via the one or more ports 212. In an embodiment, this includes parsing or identifying different segments of the header for use by subsequent units in the ingress pipeline 204 and, optionally, units in the egress pipeline 208.

A tunnel termination and interface (TTI) classification unit 222 is coupled to the header decode unit 220. The TTI classification unit 222 generally performs a lookup function (a tunnel termination interface (TTI) lookup) that in an embodiment is used for tunnel termination identification and/or classifying a logical interface according to L2 or L3 header fields. The TTI lookup indicates that the data frame should be associated with one or more TTI actions, such as assigning a virtual LAN (VLAN) identifier, quality of service (QoS) parameters, etc., to the data frame. In an embodiment, if the TTI lookup utilizes a source port indicator, the local source port indicator is utilized.

Referring again to FIG. 1, in an embodiment, all switch cores 104, 200 on the IC 100 are associated with the same device number, but each port of the IC 100 has a unique global port indicator (e.g., number). For example, in this embodiment, another switching device separate from the IC 100 can indicate that a packet should be egressed from a particular port of the IC by providing a device number of the IC 100, which is common to all of the switch cores 104, 200 on the IC 100, and a global target port indicator. This is in contrast to a configuration, for example, in which each switch core 104, 200 on the IC 100 has a separate device number, and the other switching device separate from the IC 100 indicates that a packet should be egressed from a particular port of the IC 100 by providing a device number of one of the switch cores 104, 200 on the IC 100 and a local target port indicator, i.e., local to the particular switch core 104, 200 indicated by the device number. Each switch core 104, 200 is associated with local ports, and each port of the IC 100 has a local port indicator (e.g., number). The local port indicator is unique with respect to ports of the corresponding switch core 104, 200 with which the port is associated, but is non-unique with respect to ports of other switch cores 104, 200 in the same switch, for example the other switch cores 104, 200 that are disposed on a single IC 100.

In an embodiment, the TTI classification unit 222 utilizes a TCAM, and the TCAM stores TTI data associated with local source ports of the switch core 200 and does not store TTI data associated with non-local source ports, i.e., non-local with respect to the switch core 200. On the other hand, the TCAM stores TTI data associated with global target ports, according to an embodiment. In an embodiment, the TTI classification unit 222 utilizes local source port indicators and/or global target port indicators to perform TCAM lookups. In this embodiment, duplicate TTI data need not be stored in multiple TCAMs of multiple switch cores.

An ingress policy engine 224 is coupled to the TTI classification unit 222. In an embodiment, the ingress policy engine 224 allows Policy Control Lists (PCLs) to be applied to data frames based on criteria such as including Layer 2, Layer 3, and Layer 4 field content in the data frame. In an embodiment, the ingress policy engine 224 is used to implement user applications such as Access Control Lists (ACLs), Quality of Service (QoS), policy-based VLANs, policy-based switching or routing, etc. For example, in an embodiment the ingress policy engine 224 assigns QoS attributes to a data frame, assigns a VLAN to a frame, etc. The policy engine 224 also is used for tracking data flows that ingress via the switch core 200, for example. In an embodiment, the ingress policy engine 224 generally determines whether an ingressing data frame belongs to a particular flow. In an embodiment, the ingress policy engine 224 utilizes the local source port indicator and/or the global target port indicator.

In an embodiment, the policy engine 224 utilizes a TCAM, and the TCAM stores PCL data associated with local source ports of the switch core 200 and does not store PCL data associated with non-local source ports, that is source ports coupled to one of the other switch cores. On the other hand, the TCAM stores PCL data associated with global target ports, according to an embodiment. In an embodiment, the policy engine 224 utilizes local source port indicators and/or global target port indicators to perform TCAM lookups. In this embodiment, duplicate PCL data need not be stored in multiple TCAMs of multiple switch cores.

A bridge engine 226 is coupled to the ingress policy engine 224. The bridge engine 226 includes, or is coupled to, a forwarding database (not seen) for the switch core 200 that includes MAC addresses and global ports corresponding to the MAC addresses. In an embodiment, the forwarding database for the switch core 200 also includes indications of devices (e.g., device numbers) corresponding to the MAC addresses. The bridge engine 226 generally handles the forwarding of packets destined for a segment of a network to which the switch is connected. The bridge engine 226 determines whether a received data frame should be forwarded to a different port and, if so, to which port (e.g., which global target port) the data frame should be forwarded. Determination of whether, and to where a data frame should be forwarded, may be done, for instance, by examining the MAC destination address of the packet and determining a global target port to which the destination address corresponds using the forwarding database. Also, other information may be utilized as well to determine the global target port, such as VLAN information.

In an embodiment, the forwarding database for the switch core 200 includes associations between source MAC addresses and local source port numbers, and between target MAC addresses and global target port numbers. As discussed above, local port numbers are unique within each switch core 104, 150, 200, but are not unique across all switch cores 104, 150, 200 in a switch, such as all the switch cores 104 disposed on IC 100. In an embodiment, the forwarding database for the switch core 200 includes duplicate information as compared to forwarding databases of other switch cores 200 in the IC 100. In this embodiment, forwarding databases of the multiple switch cores 200 are synchronized so that forwarding data changed by one switch core 200 is provided to other switch cores 200. For example, the CPU 120 (FIG. 1) may handle synchronizing forwarding databases of the multiple switch cores 104, 200. For instance, in an embodiment, the switch core 200 notifies the CPU 120 when the bridge engine 226 changes information in the forwarding database, or the CPU 120 detects changes made to the forwarding database, and the CPU 120, in response, makes changes, or causes the other switch cores to make changes, to the other forwarding databases corresponding to the other switch cores on the IC 100.

A router engine 228 is coupled to the bridge engine 226. If a received packet is not destined for a network to which the switch is connected, then routing based on an Internet Protocol (IP) address may be performed. The router engine 228 includes, or is coupled to, a routing information database (not seen) that includes information corresponding to where IP packets should be forwarded. The router engine 228 generally determines to where a received IP packet should be routed. This may be done by examining the IP destination address of the packet and routing information stored in the routing information database. The router engine 228 also maintains the routing information database. In an embodiment, the router engine 228 is compliant with IP version 4 (v4) and IP version 6 (v6). Of course, in other embodiments, the router engine 228 additionally or alternatively may be compliant with one or more other IP versions including previous IP versions and IP versions not yet standardized. Additionally, the router engine 228 may be capable of determining destinations for multicast packets.

An ingress policer engine 230 is coupled to the router engine 228. In an embodiment, the ingress policer engine 230 generally performs operations including rate limiting, makes flow traffic measurements, samples data frames, applies time stamps to data frames or to descriptors, etc.

A multicast replicator 232 is coupled to the ingress policer engine 230. The multicast replicator 232 generally replicates multicast packets, if necessary, for forwarding via multiple ports. In an embodiment, the multicast replicator 232 is compliant with IP v4 and IP v6, for example. Of course, in other embodiments, the multicast replicator additionally or alternatively may be compliant with one or more other IP versions. Additionally, in an embodiment, the multicast replicator 232 supports a multicast extension to the Layer Two Tunneling Protocol (LTTP).

A pre-egress engine 234 is coupled to the multicast replicator 232. The pre-egress engine 234 generally analyzes decisions made by previous units in the ingress pipeline 204 and drops, forwards or duplicates the data frame or descriptor to the egress pipeline 208 and/or the distributor 108 based on the analysis. In an embodiment, the pre-egress engine mirrors and/or traps data frames to the CPU 120, when appropriate, for example for complicated processing that is more suitable to be performed off line than in the ingress pipeline, which typically operates at or near wire speed. In an embodiment, the switch core 200 includes an interface (not seen in FIG. 3) to the CPU 120 via which data frames are forwarded to the CPU 120. In an embodiment, the CPU interface is designated a specific local target port indicator (e.g., the number 63), and thus the pre-egress engine 234 suitably forwards data frames to the CPU 120 via the CPU local port. In another embodiment, the port via which data frames are forwarded to the CPU 120, which is designated by a global port indicator.

The pre-egress engine 234 is coupled to the distributor 108. The pre-egress engine 234 is also coupled to the egress pipeline 208 via the distributor 108. In an embodiment, the pre-egress engine 234 is additionally or alternatively directly coupled to the egress pipeline 208, i.e., not via the distributor 108. In such embodiment, the pre-egress engine 234 is configured to send selected data frame descriptors to the egress pipeline 208 directly, i.e., not by way of the distributor 108. The distributor 108 generally forwards data frame descriptors to appropriate switch cores based on the target port indicator. As discussed above, the target port indicator is a global indicator which is unique for port in the switch, and thus the distributor 108 determines one or more appropriate switch cores 104 using the target port indicator.

The egress pipeline 208 is coupled to the distributor 108. In particular, an egress filtering and Layer-2 multicast replication unit 240 is coupled to the distributor 108. In an embodiment, the distributor 108 converts the target port indicator of the data frame from a global port number to a local port number and/or converts the source port indicator of the data frame from a local port number to a global port number. In another embodiment, the egress filtering and Layer-2 multicast replication unit 240 converts the target port indicator of the data frame from a global port number to a local port number and/or converts the source port indicator of the data frame from a local port number to a global port number. Subsequent units of the egress pipeline 208 then utilize the local target port indicator and the global source port indicator for processing the data frame. In an embodiment, each of the switch cores in a switch, for example each switch core 104 on single IC 100, is given a unique switch core indicator, e.g. switch core 00, 01, 10 or 11. A port indicator is deemed a global port indicator after a local port indicator has been combined with the switch core indicator. For example, in one embodiment in which the IC 100 has 48 ports, a port indicator comprises six bits. Four of the six bits (e.g., the least significant four bits) are used to specify a local port. The remaining two bits (e.g., the most significant two bits) are used to specify a switch core. In an embodiment, the port indicator is deemed a global port indicator after the switch core indicator is ORed with the port indicator so that the most significant two bits are set to the switch core indicator. Conversely, a port indicator is deemed a local port indicator when it has not yet been combined with the switch core indicator or when the switch core indicator has been removed from the port indicator. For example, in the embodiment in which the port indicator comprises six bits (the least significant four bits indicating the local port), the port indicator is deemed a local port indicator when the most significant two bits have been set to a predefined value such as 00 (i.e., the most significant two bits are cleared). In these embodiments, a local port indicator can be readily translated to a global port indicator by combining the switch core indicator with the local port indicator, e.g., by ORing. Likewise, a global port indicator can be readily translated to a local port indicator by removing the switch core indicator from the global port indicator, e.g., by masking the two bits corresponding to the switch core indicator or otherwise setting these two bits to a predefined value such as 00. In other embodiments, the switch core indicator can be combined with the local port indicator to create a global port indicator using other suitable logic. In these embodiments, reverse logic is used to remove the switch core indicator from the global port indicator to thereby restore the local port indicator. In other embodiments, the port indicator includes a number of bits other than six, and/or a number of bits other than four is used to specify the local port, and/or a number of bits other than two is used to specify the switch device.

In other embodiments in which the global port indicator comprises a first set of bits that correspond to the local port and a second set of bits that correspond to the switch core indicator, the local port indicator is determined from the global port indicator by merely ignoring the second set of bits that correspond to the switch core indicator, i.e., without setting the second set of bits to a predefined value such as 0.

In an embodiment, the egress filtering and Layer-2 multicast replication unit 240 performs filtering based on the local target port indicator, and also performs filtering based on the global source port indicator. In an embodiment, the egress filtering and Layer-2 multicast replication unit 240 also implements one or more of the following: VLAN egress filtering, spanning tree egress filtering, source port/trunk (utilizing global source port indicator) group egress filtering for multi-target data frames, egress port (utilizing local target port indicator) unregistered multicast and unknown unicast filtering, source identifier (ID) multi-target filtering, etc.

The egress filtering and Layer-2 multicast replication unit 240 also replicates multicast data frames. In a multicast data frame, a multi-target destination is indicated via a multi-target group index, also known as VIDX, in an embodiment. If a data frame is multi-target (i.e. broadcast, multicast, or unknown unicast), the descriptor is replicated for each egress port member of the VIDX group. In an embodiment, the VIDX group data only for local target ports is stored in the memory 170, and VIDX group data for non-local target ports is not stored in the memory 170. Rather, VIDX group data for non-local target ports is stored in one or more memories associated with other switch cores.

Similarly, other tables utilized by the egress filtering and Layer-2 multicast replication unit 240, in an embodiment, provide data only for local target ports, that is target ports that are local to the switch core at which egress processing is being performed. Such tables suitably include one or more of a VLAN table, a spanning tree group (SPG) table, a non trunk members table, a designated port table, etc.

The egress filtering and Layer-2 multicast replication unit 240 forwards unicast traffic to at least one of a plurality of transmit queues. For Layer-2 duplicated data frames, the egress filtering and Layer-2 multicast replication unit 240 replicates the data frame to local ports according to a distribution list. In an embodiment, the egress filtering and Layer-2 multicast replication unit 240 also provides a copy of the data frame to a transmit queue corresponding to a neighbor switch core. In an embodiment, the transmit queue corresponding to the neighbor switch core is designated a specific local target port indicator (e.g., the number 24), and thus the egress filtering and Layer-2 multicast replication unit 240 provides a copy of the data frame to the local target port corresponding to the neighbor switch core. For example, if a first switch core decides to send a data frame to a neighboring second switch core (e.g., because the data frame is a multicast data frame), the first switch core merely sends the data frame to the designated local port (e.g., local port 24). In this embodiment, multicast data frames are forwarded amongst the switch cores, and the transmit queue corresponding to the last transmit queue in the chain terminates the relayed copy to prevent loops. In another embodiment, a transmit queue corresponding to the neighbor switch core is designated a specific global target port indicator.

The egress filtering and Layer-2 multicast replication unit 240 forwards the descriptor, along with a distribution port list, including local port indicators, to a congestion avoidance and resolution unit 242. The congestion avoidance and resolution unit 242 generally performs flow control functions such as generating pause notifications and congestion notifications.

A queue and port shaping/scheduling unit 244 is coupled to the congestion avoidance and resolution unit 242. The queue and port shaping/scheduling unit 244 generally enqueues packet descriptors in a plurality of transmit queues, for example, and performs rate shaping and scheduling functions. Data frames are enqueued according to local target port indicators.

A read DMA unit 246 reads data frames from the memory 170. In an embodiment, the read DMA unit 246 is coupled to and suitably reads data from memories of other switch cores, in which data frames are stored, as well as the memory associated with the switch core 200. For example, the DMA unit 246 is configured to read data frames from memories such as shared memories and/or memories associated with other switch cores and/or memories associated with the switch core 200 at which egress processing is being performed. A header alteration unit 248 is coupled to the DMA unit 246. The header alteration unit 248 generally alters the header of a data frame as needed. For example, a source address, a destination address, etc. may be altered for a next hop, a tunnel header may be prepended if the packet is to be forwarded to a tunnel start interface, etc.

An egress policy engine 250 is coupled to the header alteration unit 248. The egress policy engine 250 generally determines a flow to which an egressing data frame belongs and suitably attaches a flow identifier to the egressing data frame.

An egress policer engine 251 is coupled to the egress policy engine 250. The egress policer engine 251 generally performs rate limiting and makes flow traffic measurements.

A port MAC transmit unit 252 is coupled to the egress policer engine 251. The port MAC transmit unit 252 generally implements media access control functions and forwards packets to appropriate ports 212, i.e., target ports that are associated with the switch core 200. The port MAC transmit unit 252 also may forward or mirror packets to the CPU 120 (FIG. 1).

FIG. 4 is a block diagram of an example distributor 350 that, in an embodiment, is utilized as the distributor 108 of FIG. 1. In other embodiments, a suitable distributor other than the distributor 350 is utilized. The example distributor 350 is for an IC 100 having four switch cores 104. In embodiments with a different number of switch cores, the distributor 350 is suitably modified. FIG. 4 will be described with reference to FIGS. 1, 2 for ease of explanation.

The distributor 350 includes a plurality of first-in-first-out (FIFO) memories arranged into groups 354, 356, 358, 360, each of the groups 354, 356, 358, 360 corresponding to a respective one of the switch cores 104 a-104 d. For example, the switch cores 104 can be referred to as switch core 0, switch core 1, switch core 2 and switch core 3. Similarly, the ingress processor 186 (FIG. 2) of each switch core can be referred to as ingress 0, ingress 1, ingress 2, or ingress 3, corresponding to switch core 0, switch core 1, switch core 2 and switch core 3, respectively; and the and the egress processor 190 of each switch core can be referred to as or egress 0, egress 1, egress 2, or egress 3, corresponding to switch core 0, switch core 1, switch core 2 and switch core 3, respectively. The FIFO group 354 corresponds to switch core 0. The FIFO group 356 corresponds to switch core 1. The FIFO group 358 corresponds to switch core 2. The FIFO group 360 corresponds to switch core 3.

In the example seen, the FIFO group 354 includes four FIFO memories 362. A FIFO memory 362 a receives descriptors from the ingress 0. FIFO memories 362 b, 362 c, 362 d receive descriptors corresponding to unicast data frames from ingress 1, 2, 3, respectively. The FIFO group 356 includes four FIFO memories 364. A FIFO memory 364 a receives descriptors from the ingress 1. FIFO memories 364 b, 364 c, 364 d receive descriptors corresponding to unicast data frames from ingress 0, 2, 3, respectively. The FIFO group 358 includes four FIFO memories 366. A FIFO memory 366 a receives descriptors from the ingress 2. FIFO memories 366 b, 366 c, 366 d receive descriptors corresponding to unicast data frames from ingress 0, 1, 3, respectively. The FIFO group 360 includes four FIFO memories 368. A FIFO memory 368 a receives descriptors from the ingress 3. FIFO memories 368 b, 368 c, 368 d receive descriptors corresponding to unicast data frames from ingress 0, 1, 2, respectively.

The distributor also includes a plurality of arbiters 372. Outputs of the FIFO group 354 are provided to the arbiter 372 a, which in turn provides an output to an egress unit 374 a (corresponding to egress 0). Outputs of the FIFO group 356 are provided to the arbiter 372 b, which in turn provides an output to an egress unit 374 b (corresponding to egress 1). Outputs of the FIFO group 358 are provided to the arbiter 372 c, which in turn provides an output to an egress unit 374 c (corresponding to egress 2). Outputs of the FIFO group 60 are provided to the arbiter 372 d, which in turn provides an output to an egress unit 374 d (corresponding to egress 3). Each egress unit 374 may be part of an egress processor 190 (FIG. 2), for example.

Each of the egress units 374 includes a respective egress filtering unit 376, a respective pair of FIFO memories 378, 380, and a respective plurality of transmit queues 382. An output of the egress filtering unit 376 is provided to the FIFO memory 380, and an output of the FIFO memory 380 is provided to the plurality of transmit queues 382. Additionally, an output of the egress filtering unit 376 is provided to the FIFO memory 378. An output of the 10 Gbps FIFO memory 378 is provided as input to a FIFO group corresponding to another switch core. For example, an output of the FIFO memory 378 a is provided as an input to the FIFO memory 364 b. An output of the FIFO memory 378 b is provided as an input to the FIFO memory 366 c. An output of the FIFO memory 378 c is provided as an input to the FIFO memory 368 d. An output of the FIFO memory 378 d is provided as an input to the FIFO memory 362 d. In an embodiment, the distributor 350 is suitable for forwarding multicast data frames amongst the switch cores. For example, a multicast packet is forwarded amongst neighboring switch cores via the MC FIFOs 378. The egress unit 374 corresponding to the last transmit queue in the chain terminates the relayed copy to prevent loops.

FIG. 5 is a flow diagram of an example method 400 that is implemented by the IC 100 of FIG. 1, the switch core 150 of FIG. 2, and the switch core 200 of FIG. 3. The method 400 is suitably implemented, for example, by other suitable systems that utilize multiple switch cores and a distributor to forward data frames and/or descriptors between the switch cores. Additionally, in an embodiment, the IC 100 of FIG. 1, the switch core 150 of FIG. 2, and/or the switch core 200 of FIG. 3 implement other suitable methods as an alternative to implementing the example method 400. For ease of explanation, the method 400 is described with reference to FIGS. 1-3.

At block 404, a data frame is received via a local port of a first switch core, and a descriptor for the data frame is created by the first switch core at block 408. The descriptor includes a local port indicator corresponding to the port of the first switch core at which the data frame was received, i.e., the ingressing port. For example, as discussed above, the write DMA unit 218 of the example switch core 200 creates descriptors for data frames received via local ports corresponding to the switch core 200.

At block 412, a global target port is determined and a global target port indicator is added to the descriptor. For example, as discussed above, the bridge engine 226 of the example switch core 200 determines the global target port indicator for a data frame and adds the global target port indicator to the descriptor.

At block 416, the descriptor is processed in an ingress processor of the switch core and, in particular, the ingress processor utilizes the local source port indicator and/or the global target port indicator to process the descriptor.

At block 420, the descriptor is provided to a distributor that transfers descriptors between the plurality of switch cores. At block 424, the local source port indicator is converted to a global source port indicator, and the global target port indicator is converted to a local target port indicator. The block 424 is suitably implemented in the distributor 108 and/or in the egress processor 190.

In an embodiment, a global port indicator is a number having a width of x-bits, where x is a suitable integer. The z most significant bits, where z is a suitable integer less than x, are an indicator of the switch core. The remaining bits correspond to a local port number. Thus, in this embodiment, a global port number is converted to a local port number by clearing the z most significant bits. Similarly, a local port number is converted to a global port number by setting the z most significant bits to an indicator of the switch core that is coupled to the local port. For example, in an implementation having four switch cores on an IC, and wherein each switch core is to have twelve local ports, a 6-bit number is utilized as the port indicator. In particular, the two most significant bits are utilized to indicate one of the four switch cores. Additionally, the four least significant bits are utilized to indicate the local port number. For a different number of switch cores, a different suitable number of bits is utilized to indicate the switch core. For a different number of local ports, a different suitable number of bits is utilized to indicate the local port.

It is noted, in view of the present disclosure and teachings herein, that there are many other suitable port indicators and techniques for converting between local and global port indicators, and vice versa. For example, the global port number need not comprise a first set of bits indicating the switch core and a second set of bits indicating the local port number.

A translator circuit implements the block 424. Referring to FIGS. 1 and 2, the translator circuit is suitably a component of the distributor 108, the ingress processor 186, and/or the egress processor 190. Referring to FIG. 3, in an embodiment the translator circuit is a component of the egress filtering and L2 multicast replication block 240 or some other block of the egress pipeline 208 and/or the ingress pipeline 204. Additionally, the translator circuit suitably is a separate block in the egress pipeline 208 and/or the ingress pipeline 204.

At block 428, the descriptor is processed in an egress processor of a second switch core and, in particular, the egress processor utilizes the global source port indicator and/or the local target port indicator to process the descriptor. At block 432, the data frame is transmitted via one or more appropriate ports.

In another embodiment, the block 424 is omitted. For example, in an embodiment in which the global port indicator is a number that comprises a first set of bits indicating the switch core and a second set of bits indicating the local port number, the ingress engine and the egress engine ignores the first set of bits to utilize the local port number.

Each of the blocks of FIGS. 1-4, and the method 400 of FIG. 5 may be implemented by hardware. More generally, however, in an embodiment, the blocks of FIGS. 1-4, and the method 400 of FIG. 5 are implemented using hardware, a processor executing firmware instructions, a processor executing software instructions, or any combination thereof. When a block is implemented at least partially using a processor that executes software instructions, the software is stored in any suitable computer readable memory such as on a magnetic disk, an optical disk, or other storage medium, in a RAM or ROM or flash memory of a computer, processor, hard disk drive, optical disk drive, tape drive, etc. Likewise, the software instructions may be delivered to a user or a system via any known or desired delivery method including, for example, on a computer readable disk or other transportable computer storage mechanism or via communication media. When implemented in hardware, the hardware suitably comprise one or more of discrete components, an integrated circuit, an application-specific integrated circuit (ASIC), etc. Referring to FIG. 1, in an embodiment, the system 100 is implemented on a single integrated circuit (IC), and the CPU 120 is implemented on the same IC as the system 100 or on a separate IC that communicates with system 100. In another embodiment, the system 100 is implemented on a plurality of separate ICs. In one embodiment, the system 100 is implemented on a single ASIC, and the CPU 120 is implemented on a separate IC.

FIG. 6 is a block diagram of an example switch device 500. The switch device 500 includes a plurality of switch ICs 504 mounted on a printed circuit board 508. Each of the switch ICs 504 may be the same as or similar to the switch IC 100 of FIG. 1. In an embodiment, each switch IC 504 has ports coupled to ports of one or more of the other switch ICs 504. One or more CPU's 512 are coupled to the switch ICs 504 and are mounted to the printed circuit board 508. The printed circuit board may include one or more connectors 516 for port interconnections with other switches, servers, trunks, etc. One or more of the switch ICs 504 can have ports coupled to the connectors 516. The switch device 500 is capable of supporting a large number of ports.

In another embodiment, each switch IC 504 is disposed on a separate PCB, and each IC 504 shares a common CPU 512. In this embodiment, the CPU 512 is disposed on the same the PCB on which one of the switch ICs 504 is disposed, or on a separate PCB.

While the present invention has been described with reference to specific examples, which are intended to be illustrative only and not to be limiting of the invention, it will be apparent to those of ordinary skill in the art that changes, additions and/or deletions may be made to the disclosed embodiments without departing from the spirit and scope of the invention. 

1. A switching device, comprising: a plurality of switch cores, each switch core having ports associated with the switch core; wherein each switch core is configured to perform ingress processing of a data frame using a local source port indicator corresponding to an ingress port selected from a first plurality of ports corresponding to the switch core, wherein the local source port indicator is unique with respect to ports of the switch core and non-unique with respect to ports of other switch cores among the plurality of switch cores; wherein ingress processing of a data frame includes applying a global target port indicator corresponding to an egress port selected from a second plurality of ports including the first plurality of ports and ports corresponding to one or more other switch cores among the plurality of switch cores, wherein the global target port indicator is unique among ports of the plurality of switch cores.
 2. A switching device according to claim 1, wherein each switch core is configured to perform egress processing of the data frame using a local target port indicator corresponding to an egress port selected from the first plurality of ports associated with the switch core.
 3. A switching device according to claim 2, wherein each switch core is configured to perform egress processing of the data frame using a global source port indicator corresponding to an ingress port selected from the second plurality of ports.
 4. A switching device according to claim 2, wherein the data frame is transferred to another switch core if the global target port indicator indicates an egress port associated with one of the one or more other switch cores.
 5. A switching device according to claim 2, further comprising a distributor coupled to the plurality of switch cores, the distributor configured to transfer data frame information between switch cores.
 6. The switching device according to claim 5, wherein the switching device is configured to perform an ingress processing operation on the data frame at an ingress processing pipeline associated with a first switch core, and to selectively direct the data frame to an egress processing pipeline associated with the first switch core or to an egress processing pipeline associated with a second switch core, and to perform an egress processing operation on the data frame at the selected egress processing pipeline.
 7. The switching device according to claim 1, wherein the plurality of switch cores are disposed on a single integrated circuit.
 8. The switching device according to claim 7, wherein each switch core includes a pipeline configured to: process a received data frame; and direct the received data frame to another switch core on the single integrated circuit for further processing, or direct the received data frame to an egress port.
 9. A switching device according to claim 1, wherein each of the plurality of switch cores is configured to convert the local source port indicator to a global source port indicator.
 10. A switching device according to claim 1, wherein each of the plurality of switch cores is configured to convert the global target port indicator to a local target port indicator.
 11. A method, comprising: receiving a data frame via a port corresponding to a first switch core among a plurality of switch cores of a switching device; applying a local source port indicator corresponding to the port corresponding to the first switch core, wherein the local source port indicator is unique with respect to the first switch core and non-unique with respect to other switch cores in the plurality of switch cores; performing ingress processing on the received data frame using the local source port indicator; and determining a target port for forwarding the received data frame; and applying a global target port indicator corresponding to the target port corresponding to the received data frame, wherein the global target port indicator is unique with respect to all of the switch cores among the plurality of switch cores.
 12. A method according to claim 11, further comprising transmitting the data frame via the target port.
 13. A method according to claim 11, further comprising performing egress processing on the received data frame using a local target port indicator, wherein the local target port indicator is unique with respect to a second switch core associated with the target port and non-unique with respect to other switch cores in the plurality of switch cores.
 14. A method according to claim 13, further comprising converting the global target port indicator to the local target port indicator.
 15. A method according to claim 13, further comprising performing egress processing on the received data frame using a global source port indicator, wherein the global source port indicator is unique with respect to all of the switch cores in the plurality of switch cores.
 16. A switching device, comprising: a first switch core having an ingress processor and an egress processor, wherein the ingress processor of the first switch core utilizes first local source port indicators and global target port indicators for ingress processing, wherein the first local source port indicators correspond to ports of the first switch core, are unique with respect to the first switch core and, are non-unique with respect to a second switch core, and wherein the global target port indicators correspond to ports of the first switch core and the second switch core; the second switch core having an ingress processor and an egress processor, wherein the egress processor of the second switch core utilizes second local target port indicators and the global source port indicators for egress processing, wherein the second local target port indicators correspond to ports of the second switch core, are unique with respect to the second switch core, and are non-unique with respect to the first switch core, and wherein the global source port indicators are unique with respect to both the first switch core and the second switch core; a distributor coupled to the first switch core and the second switch core, the distributor configured to transfer data frame information from the ingress processor of the first switch core to the egress processor of the second switch core; and a translator configured to translate local source port indicators to global source port indicators, and to translate global target port indicators to local target port indicators.
 17. A switching device according to claim 16, wherein translating a local source port indicator to a global source port indicator comprises setting bits of a source port indicator to an indicator of a switch core associated with the source port; wherein translating a global target port indicator to a local target port indicator comprises clearing bits of a target port indicator corresponding to an indicator of a switch core associated with the target port.
 18. A switching device according to claim 16, further comprising at least one other switch core, each switch core in the at least one other switch core having an ingress processor and an egress processor; wherein the global source port indicators are unique with respect to the first switch core, the second switch cores, and the at least one other switch core; and wherein the distributor is coupled to the at least one other switch core.
 19. A switching device according to claim 18, wherein the first switch core, the second switch core, the at least one other switch core, the distributor, and the translator are implemented on a single integrated circuit.
 20. A switching device according to claim 18, wherein the translator is a component of the distributor. 